<?php
$pathArr = explode("/", $_SERVER["PHP_SELF"]);
$contextPath = $pathArr[1];
$rootPath = $_SERVER["DOCUMENT_ROOT"];
?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Admin Panel</title>
		<?php
			require_once($rootPath . "/" . $contextPath . "/includes/css_inc.php");
			require_once($rootPath . "/" . $contextPath . "/includes/js_inc.php");
		?>
		<script>
			$(function() {
				$( "button, input:submit, a", ".btn" ).button();

				$('#dialog').dialog({
					autoOpen: false,
					width: 600,
					modal: true,
					buttons: {
						"Ok": function() { 
							$(this).dialog("close"); 
						}, 
						"Cancel": function() { 
							$(this).dialog("close"); 
						} 
					}
				});
				
				// Dialog Link
				$('#dialog_link').click(function(){
					$('#dialog').dialog('open');
					return false;
				});
		});
		</script>
	</head>
	<body>
	</body>
</html>